
using System;
using System.Windows;
using System.Windows.Media;

namespace MonoDevelop.XamlDesigner
{


	public static class Utils
	{

		public delegate void CustomAction (DependencyObject v);
        
		static public void EnumVisual(DependencyObject myVisual, CustomAction action )
		{
			for (int i = 0; i < VisualTreeHelper.GetChildrenCount(myVisual); i++)
			{
				DependencyObject childVisual = VisualTreeHelper.GetChild(myVisual, i);
				action (childVisual);
				EnumVisual(childVisual, action);
			}
		}
	}
}
